import org.junit.jupiter.api.Test;

import java.util.*;

public class TestDriver {
    public static void main(String[] args) {
         boolean can = true;
         List<Map>  list = new ArrayList<>();
         Map<String,Object> map = new LinkedHashMap();
         map.put("nihao",123);
         map.put("hello",1234);
         map.put("asda",1232141);
         list.add(map);

         for (Map m : list){
             Iterator iterator = m.entrySet().iterator();
             if (can){
                 while (iterator.hasNext()) {
                     Map.Entry<String,Object> next = (Map.Entry<String, Object>) iterator.next();
                     System.out.print(next.getKey() + "   ");
                 }
                 System.out.println();
                 can = false;
             }

             while (iterator.hasNext()){
                 Map.Entry<String,Object> next = (Map.Entry<String, Object>) iterator.next();
                 System.out.print(next.getValue()+"   ");

             }
             System.out.println();
         }

    }





}